package cc;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * TODO
 *
 * @author My
 * @date 2021/6/22 14:55
 */
@Entity
@Table(name = "test")
public class Test implements Serializable {
    @Id
    @Column(name = "id")
    private int id;
    @Column(name = "num")
    private int num;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public Test(int id, int num) {
        this.id = id;
        this.num = num;
    }

    public Test() {
    }

    @Override
    public String toString() {
        return "Test{" +
                "id=" + id +
                ", num=" + num +
                '}';
    }
}
